new Vue({
	el: '#main',
	data: {
		currentWebview:"",
		data:{}
	},
	computed:{
		date:function(){
			return this.data.startTime+"~"+this.data.endTime
		},
		contact:function(){
			return this.data.contactorNameZh+"~"+this.data.contactorPhone
		}
		
	},
	methods: {
		plusReady: function() {
		  this.currentWebview = plus.webview.currentWebview();
          this.getMessage();
		},
		getMessage: function() {
			var  context=this;
			var data = {
				id:'50edf050a7964711b0d57dd96b5bc3e4'
//				id:this.currentWebview.id
			};
			ajAjax("app/agdenda/getAgendDetail.do", data, function(data) {
				context.data = data.Rows;
			}, function(err) {
				mui.toast("查询失败")
			});
		},

	},
	mounted: function() {
		if(window.plus) {
			this.plusReady();
		} else {
			document.addEventListener("plusready", this.plusReady, false);
		}
	}
});